<?php
define('BASE_URL', 'http://vb2web.local');
define('FILES_PATH', WWW_ROOT . DS . 'files' . DS);
define('PDF_RECEIPT_FILE_DIR', FILES_PATH . DS . 'pdf_%s.pdf');
define('EXCEL_FILE_DIR_TMP', FILES_PATH . DS . 'excel_%s.xlsx');
define('CSV_FILE_DIR_TMP', str_replace(array('\\\\', '\\'), array('/', '/'), FILES_PATH . DS . 'csv_%s.csv')); // must replace here to best performance
define('PDF_COMMON_IMAGE_FILE_DIR', FILES_PATH . DS . 'common' . DS . '%s.pdf');
define('TXT_FILE_DIR_TMP', FILES_PATH . DS . 'txt_%s.txt');
define('ZIP_EXECUTION_FILE', '/usr/bin/zip');
define('ZIP_IMAGE_FOLDER_TMP', '/tmp/pdfImageFolder_');
define('TXT_FILE_SYUKKOD',  str_replace(array('\\\\', '\\'), array('/', '/'),FILES_PATH . DS . 'syukkoD.txt')); // overwrite
define('TXT_FILE_NYUSYUKKOD',  str_replace(array('\\\\', '\\'), array('/', '/'),FILES_PATH . DS . 'nyusyukkoD.txt')); // overwrite
define('BATCH_IMPORT_DATA', WWW_ROOT . DS . 'batch' . DS . 'ishikari.bat');
define('BATCH_IMPORT_DATA_CMD', 'sh ' . BATCH_IMPORT_DATA);
define('MAKER_CD_REPORT_NO_SPECIAL', '42300');
define('HTML_TO_PDF_EXE_PATH', "C:/bin/wkhtmltopdf/bin/wkhtmltopdf");
// add >>> 
define('BACKUP_DATA_FILE_DIR', FILES_PATH . DS . 'backup' . DS);
define('BACKUP_DATA_FILE_SHIPPER_DIR', BACKUP_DATA_FILE_DIR . 'shipper.txt');
define('BACKUP_DATA_FILE_AREA_DIR', BACKUP_DATA_FILE_DIR . 'area.txt');
define('BACKUP_DATA_FILE_SHIPPING_DIR', BACKUP_DATA_FILE_DIR . 'shipping_fee.txt');
define('BACKUP_DATA_FILE_KANRI_DIR', BACKUP_DATA_FILE_DIR . 'kanri.txt');
define('BACKUP_DATA_FILE_DIFF_SHIPPER_DIR', BACKUP_DATA_FILE_DIR . 'diff_shipper.txt');
define('BACKUP_DATA_FILE_DIFF_PRODUCT_DIR', BACKUP_DATA_FILE_DIR . 'diff_product.txt');

define('CMD_RUN_BATCH_BACKUP', "php C:/wamp/www/vb2web/app/Console/cake.php BackupDB");// add 20140826
// <<< add 
// define('HTML_TO_PDF_EXE_PATH', 'c:/bin/wkhtmltopdf/bin/wkhtmltopdf');

// maximum record per page
define('RPT_SHIPPER_MAX_REC', 65); // 65
define('RPT_SHIPPING_FEE_MAX_REC', 65); // 65
define('RPT_AREA_MAX_REC', 65); // 65
define('RPT_SHIPPER_DIFF_MAX_REC', 65); // 65

// define('DATA_FILE_IMPORT_EXPORT_DIR', 'C:/石狩入出庫精算処理/入出庫データ.txt');
// define('DATA_FILE_EXPORT_DIR', 'C:/石狩入出庫精算処理/出庫データ.txt');
define('DATA_FILE_IMPORT_EXPORT_DIR', '/data/import_export_data.txt');
define('DATE_COLUMN_IMPORT_EXPORT', 3);
define('DATA_FILE_EXPORT_DIR', '/data/export_data.txt');
define('DATE_COLUMN_EXPORT', 3);
define('PDF_MARGIN_OPTION', '-s A4 --margin-top 20 --margin-bottom 20 --margin-right 0.5 --margin-left 0.5 --zoom 1 --footer-html ' . BASE_URL . '/frmFooter');